package com.woniuxy.controller;

import com.woniuxy.pojo.Basic;
import com.woniuxy.service.BasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BasicController {
    @Autowired
    private BasicService basicService;
    @GetMapping(value = "/ares/list.do")
    public List<Basic> selectAllAres(){
        return basicService.selectAllAres();
    }
    @GetMapping(value = "/grades/list.do")
    public List<Basic> selectAllGrade(){
        return basicService.selectAllGrade();
    }
}
